<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加页面</title>
<script type="text/javascript" src="/ssm01/js/jquery.min.js"></script>

</head>
<body>
<form action="/ssm01/emp/empSave" method="post" id="form1" enctype="multipart/form-data">
员工名称：<input type="text" name="ename" />
部门名称：<select type="text" name="dept.did">

<option value="-1">请选择</option>
<c:forEach items="${list }" var="d">
<option value="${d.did }">${d.dname}</option>
</c:forEach>
</select></br>
生日：<input type="date" name="birthday"/><br>
头像：<input type="file" name="file"/><br>
性别：<input type="radio" name="sex" value="1" checked="checked"/>男
    <input type="radio" name="sex" value="2">女</br>
<input type="submit" value="保存">

</form>

</body>
</html>